import Layout from '@/layout'
const storeRouter = {
  path: '/store',
  component: Layout,
  redirect: '/store/in',
  name: 'Store',
  alwaysShow: true,
  meta: {
    type: 'I',
    roles: ['2610', '2614', '2618', '2622', '2626', '2630', '2634'],
    title: '库存',
    icon: 'store'
  },
  children: [{
    path: 'warehousing',
    component: () => import('@/views/store/warehousing'),
    name: 'Warehousing',
    meta: {
      type: 'I',
      roles: ['2610', '261010', '261020', '261030', '261040', '261050', '261060', '261070', '261080', '261090', '261092'],
      title: '入库单'
    }
  }, {
    path: 'warehousingAdd',
    component: () => import('@/views/store/warehousingAdd'),
    name: 'WarehousingAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['261010'],
      title: '新增入库单'
    }
  }, {
    path: 'warehousingModify',
    component: () => import('@/views/store/warehousingAdd'),
    name: 'WarehousingModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['261020'],
      title: '编辑入库单'
    }
  }, {
    path: 'warehousingDetail',
    component: () => import('@/views/store/warehousingAdd'),
    name: 'WarehousingDetail',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['261020'],
      title: '查看入库单'
    }
  }, {
    path: 'warehousingReturned',
    component: () => import('@/views/store/warehousingReturned'),
    name: 'WarehousingReturned',
    meta: {
      type: 'I',
      roles: ['2614', '261410', '261420', '261430', '261440', '261450', '261460', '261470', '261480', '261490', '261492'],
      title: '采购退货出库'
    }
  }, {
    path: 'warehousingReturnedAdd',
    component: () => import('@/views/store/warehousingReturnedAdd'),
    hidden: true,
    name: 'WarehousingReturnedAdd',
    meta: {
      type: 'I',
      roles: ['261410'],
      title: '新增采购退货出库'
    }
  }, {
    path: 'warehousingReturnedModify',
    component: () => import('@/views/store/warehousingReturnedAdd'),
    hidden: true,
    name: 'WarehousingReturnedModify',
    meta: {
      type: 'I',
      roles: ['261420'],
      title: '编辑采购退货出库'
    }
  }, {
    path: 'warehousingReturnedDetail',
    component: () => import('@/views/store/warehousingReturnedAdd'),
    hidden: true,
    name: 'WarehousingReturnedDetail',
    meta: {
      type: 'I',
      roles: ['261420'],
      title: '查看采购退货出库'
    }
  }, {
    path: 'allocation',
    component: () => import('@/views/store/allocation'),
    name: 'Allocation',
    meta: {
      type: 'I',
      roles: ['2618', '261810', '261820', '261830', '261840', '261850', '261860', '261870', '261880', '261890', '261892'],
      title: '调拨单'
    }
  }, {
    path: 'allocationAdd',
    component: () => import('@/views/store/allocationAdd'),
    name: 'AllocationAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['261810'],
      title: '新增调拨单'
    }
  }, {
    path: 'allocationModify',
    component: () => import('@/views/store/allocationAdd'),
    name: 'AllocationModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['261820'],
      title: '编辑调拨单'
    }
  }, {
    path: 'allocationDetail',
    component: () => import('@/views/store/allocationAdd'),
    name: 'AllocationDetail',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['261820'],
      title: '查看调拨单'
    }
  }, {
    path: 'movement',
    component: () => import('@/views/store/movement'),
    name: 'Movement',
    meta: {
      type: 'I',
      roles: ['2622', '262210', '262220', '262230', '262240', '262250', '262260', '262270', '262280', '262290', '262292'],
      title: '移库单'
    }
  }, {
    path: 'movementAdd',
    component: () => import('@/views/store/movementAdd'),
    name: 'MovementAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262210'],
      title: '新增移库单'
    }
  }, {
    path: 'movementModify',
    component: () => import('@/views/store/movementAdd'),
    name: 'MovementModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262220'],
      title: '编辑移库单'
    }
  }, {
    path: 'movementDetail',
    component: () => import('@/views/store/movementAdd'),
    name: 'MovementDetail',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262220'],
      title: '查看移库单'
    }
  }, {
    path: 'outboundOrder',
    component: () => import('@/views/store/outboundOrder'),
    name: 'OutboundOrder',
    meta: {
      type: 'I',
      roles: ['2626', '262610', '262620', '262630', '262640', '262650', '262660', '262670', '262680', '262690', '262692'],
      title: '出库单'
    }
  }, {
    path: 'outboundOrderAdd',
    component: () => import('@/views/store/outboundOrderAdd'),
    name: 'OutboundOrderAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262610'],
      title: '新增出库单'
    }
  }, {
    path: 'outboundOrderModify',
    component: () => import('@/views/store/outboundOrderAdd'),
    name: 'OutboundOrderModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262620'],
      title: '编辑出库单'
    }
  }, {
    path: 'outboundOrderSplit',
    component: () => import('@/views/store/outboundOrderAdd'),
    name: 'OutboundOrderSplit',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262620'],
      title: '拆分出库单'
    }
  }, {
    path: 'outboundOrderDetail',
    component: () => import('@/views/store/outboundOrderAdd'),
    name: 'OutboundOrderDetail',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['262620'],
      title: '查看出库单'
    }
  }, {
    path: 'outboundOrderReturned',
    component: () => import('@/views/store/outboundOrderReturned'),
    name: 'OutboundOrderReturned',
    meta: {
      type: 'I',
      roles: ['2630', '263010', '263020', '263030', '263040', '263050', '263060', '263070', '263080', '263090', '263092'],
      title: '销售退货入库'
    }
  }, {
    path: 'outboundOrderReturnedAdd',
    component: () => import('@/views/store/outboundOrderReturnedAdd'),
    name: 'OutboundOrderReturnedAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['263010'],
      title: '新增销售退货入库'
    }
  }, {
    path: 'outboundOrderReturnedModify',
    component: () => import('@/views/store/outboundOrderReturnedAdd'),
    name: 'OutboundOrderReturnedModify',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['263020'],
      title: '编辑销售退货入库'
    }
  }, {
    path: 'outboundOrderReturnedDetail',
    component: () => import('@/views/store/outboundOrderReturnedAdd'),
    name: 'OutboundOrderReturnedDetail',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['263020'],
      title: '查看销售退货入库'
    }
  }, {
    path: 'inventory',
    component: () => import('@/views/store/inventory'),
    name: 'Inventory',
    meta: {
      type: 'I',
      roles: ['2634', '263410', '263420', '263430', '263440', '263450', '263460', '263470', '263480', '263490', '263492'],
      title: '盘点单'
    }
  }, {
    path: 'inventoryAdd',
    component: () => import('@/views/store/inventoryAdd'),
    name: 'InventoryAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['263420'],
      title: '新增盘点单'
    }
  }, {
    path: 'inventoryModify',
    component: () => import('@/views/store/inventoryAdd'),
    name: 'InventoryAdd',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['263430'],
      title: '编辑盘点单'
    }
  }, {
    path: 'inventoryDetail',
    component: () => import('@/views/store/inventoryAdd'),
    name: 'InventoryDetail',
    hidden: true,
    meta: {
      type: 'I',
      roles: ['263410'],
      title: '查看盘点单'
    }
  }]
}

export default storeRouter
